package net.zabuchy.activities.dao;
 
import java.util.List;
 
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
 
import net.zabuchy.activities.entity.History_event;
 
public class ActivityDaoImpl extends HibernateDaoSupport implements ActivityDao {

	public void add(History_event historyEvent) {
		getHibernateTemplate().save(historyEvent);
	}

	public void update(History_event historyEvent) {
		getHibernateTemplate().update(historyEvent);
	}

	public void delete(History_event historyEvent) {
		getHibernateTemplate().delete(historyEvent);
	}

	public List findAll() {
		return getHibernateTemplate().find("from History_event");
	}

	public List findById(int id) {
		return getHibernateTemplate().find("from History_event where HISTORY_EVENT_ID=?", id);
	}
 

}